//
//  XIBView.m
//  SYPerfectDemo
//
//  Created by Lssyyy on 2018/10/24.
//  Copyright © 2018年 Lssyyy. All rights reserved.
//

#import "XIBView.h"

@interface XIBView()
@property (weak, nonatomic) IBOutlet UILabel *nameLb;
@property (weak, nonatomic) IBOutlet UILabel *addressLb;

@end

@implementation XIBView

- (instancetype)init{
    if (self = [super init]) {
        self = [[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
        self.backgroundColor = [UIColor redColor];
    }
    return self;
}

- (void)awakeFromNib{
    [super awakeFromNib];
    _nameLb.text = @"名字名字名字名字名字名字名字名字名字";
    _addressLb.text = @"厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市厦门市";
}
@end
